from django.urls import path
from apps.areas.views import AreasView,SubAreasView,AddressCreateView,AddressView
from apps.areas.views import UpdateDestroyAddressView,DefaultAddressView,UpdateTitleAddressView

urlpatterns = [
    path('areas/',AreasView.as_view()),
    path('areas/<id>/',SubAreasView.as_view()),
    path('addresses/create/',AddressCreateView.as_view()),
    path('addresses/',AddressView.as_view()),
    path('addresses/<address_id>/',UpdateDestroyAddressView.as_view()),
    path('addresses/<address_id>/default/',DefaultAddressView.as_view()),
    path('addresses/<address_id>/title/',UpdateTitleAddressView.as_view())
]